﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppManager.Model
{
    public class AppModel : IComparable
    {
        public string Id { set; get; }
        public string Name { set; get; }
        public string Icon { set; get; }
        public string Cmd { set; get; }
        public string Args { set; get; }
        public string WorkingDirectory { set; get; }
        public bool UseShellExecute { set; get; }
        public bool StopWhenExit { set; get; }
        public Dictionary<string, string> Env { set; get; }
        public int Sort { set; get; } = 9999;

        public int CompareTo(object obj)
        {
            return Sort.CompareTo(((AppModel)obj).Sort);
        }
    }
}
